#ifndef MORPHPROP_H_
#define MORPHPROP_H_

#include <string>
#include <map>

using namespace std;

class Morphprop
	{
	public:
		Morphprop( const char * path = 0 )  {  init( path );  }
		~Morphprop();
		void init( const char * path );
		const string & prop( string& propName )  {  return _prop[ propName ];  }
		static Morphprop * single() { if( !_singleton )  throw "Dictionary path doesn't set" ;  return _singleton;  }
		const char * getpath(  ) {  return _path;  }
	
	protected:
		static Morphprop * _singleton;
		const char *		_path;
		map<string,string> _prop;
	};

#endif /*MORPHPROP_H_*/
